/*package edu.wpi.first.wpilibj.templates;
import com.sun.squawk.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import javax.microedition.io.Connector;
import javax.microedition.io.SocketConnection;

public class Pestilence {
    SocketConnection com;
    InputStreamReader in;
    BufferedWriter out;

    public Pestilence(final String host,final int port){
        try{
            System.out.println("Pestilence: Trying Connection to Server "+host+":"+port);
            com=(SocketConnection)Connector.open("socket://"+host+":"+port);
            in=new InputStreamReader(com.openDataInputStream());
            out=new BufferedWriter(new OutputStreamWriter(com.openOutputStream()));
        }catch(IOException e){System.out.println("Pestilence: Bad Host or Port");}
    }
    public void requestData(String s)throws IOException{
        out.write(s);
        out.newLine();
        out.flush();
    }
    public String[] returnData()throws IOException{
        char[] args=new char[24];
        in.read(args);
        String s="";
        for(int i=0;i<args.length;i++) s+=args[i]!='\0'?""+args[i]:"";
        String[] x=new String[4];
        return x=split(s);
    }
    private String[] split(String s){
        String[] args=new String[4];
        s=s.substring(s.indexOf("[")+1,s.indexOf("]"));
        s+=",";
        int i=0;
        while(!s.equals("")){
            args[i]=s.substring(0,s.indexOf(","));
            s=s.substring(s.indexOf(",")+1,s.length()-1);
            i++;
        }
        return args;
    }
}*/